package com.web.base.wechat.message;

import com.blue.core.dict.State;
import com.blue.validation.group.SaveModel;
import com.blue.validation.group.UpdateModel;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 微信菜单请求内容
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年04月27日
 */
 public class WechatMenuRequest implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	@NotNull(groups = { UpdateModel.class }, message = "编号不能为空")
	@Null(groups={SaveModel.class}, message="编号必须为空")
	private Integer id;
	private Integer parentId;
	@NotNull(groups = { SaveModel.class }, message = "微信编号不能为空")
	private Integer wechatId;
	@NotBlank(groups = { SaveModel.class }, message = "名称不能为空")
	@Size(min = 0, max = 20, groups = { SaveModel.class, UpdateModel.class }, message = "名称长度[0-20]")
	private String name;
	@Size(min = 0, max = 50, groups = { SaveModel.class, UpdateModel.class }, message = "键长度[0-50]")
	private String key;
	@Size(min = 0, max = 200, groups = { SaveModel.class, UpdateModel.class }, message = "链接长度[0-200]")
	private String url;
	@Size(min = 0, max = 200, groups = { SaveModel.class, UpdateModel.class }, message = "描述长度[0-200]")
	private String descp;
	private State state;
	@NotBlank(groups = { SaveModel.class }, message = "类型不能为空")
	@Size(min = 0, max = 20, groups = { SaveModel.class, UpdateModel.class }, message = "类型长度[0-20]")
	private String type;
	private Integer sort;
	
	public WechatMenuRequest()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public Integer getParentId()
	{
		return this.parentId;
	}
	
	public void setParentId(Integer parentId)
	{
		this.parentId = parentId;
	}
	
	public Integer getWechatId()
	{
		return this.wechatId;
	}
	
	public void setWechatId(Integer wechatId)
	{
		this.wechatId = wechatId;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public String getKey()
	{
		return this.key;
	}
	
	public void setKey(String key)
	{
		this.key = key;
	}
	
	public String getUrl()
	{
		return this.url;
	}
	
	public void setUrl(String url)
	{
		this.url = url;
	}
	
	public String getDescp()
	{
		return this.descp;
	}
	
	public void setDescp(String descp)
	{
		this.descp = descp;
	}
	
	public State getState()
	{
		return this.state;
	}
	
	public void setState(State state)
	{
		this.state = state;
	}
	
	public String getType()
	{
		return this.type;
	}
	
	public void setType(String type)
	{
		this.type = type;
	}
	
	public Integer getSort()
	{
		return this.sort;
	}
	
	public void setSort(Integer sort)
	{
		this.sort = sort;
	}
	
}
